from django.contrib import admin
from models import Note, Tag

# Register your models here.

class TagInline(admin.TabularInline):
	model = Tag

class NoteAdmin(admin.ModelAdmin):
	inlines = [TagInline]
	fieldsets = (
		['Main',{
			'fields':('title',),
		}],
		['Advance',{
			'classes': ('collapse',),
			'fields': ('body',),
		}
		]) 
		
admin.site.register(Note, NoteAdmin)
admin.site.register([Tag])
